package com.s666.demo.config;

import com.s666.demo.model.dto.PairDTO;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.*;
/**
 * 样例
 * @author lijin
 */
@Configuration
@ConfigurationProperties("other")
@Data
public class OtherCfg {
    private String name;
    private String version;
    private Integer num;
    private List<String> ipList;
    private List<PairDTO> ipList2 =new ArrayList<PairDTO>();

    private Map<String,String> blackMap;
    private Map<String,PairDTO> blackMap2 = new HashMap<String,PairDTO>();

}